<?php
/**
 * @author: Hua Phuoc Truong
 * @created: 1:16 PM 8/29/13
 * @copyright: 2013
 * @version: 1.0
 */

class ZCollection {
    /**
     * @var Array
     */
    protected $items = Array();

    /**
     * @var int Total matched record
     */
    protected $total = 0;

    /**
     * Get number of messages
     * @return int Number of messages
     */
    public function count(){
        return count($this->items);
    }

    /**
     * Get total matched record
     * @return int
     */
    public function getTotal(){
        return $this->total;
    }

    /**
     * Set total matched record
     * @param $value int
     */
    public function setTotal($value){
        $this->total = $value;
    }

    /**
     * Get array of items
     * @return Array
     */
    public function getItems() {
        return $this->items;
    }
}